from django.contrib.auth import logout
from django.contrib.auth.decorators import login_required
from django.http import HttpResponse
from django.shortcuts import render_to_response
from json.models import Note


@login_required()
def notes(request):
    notes = Note.objects.filter(user__username = request.user.username)
    return render_to_response('notes.html', {'notes': notes})

